package template

import (
	"strconv"
	"strings"
)

func GetDataFromArrayTemplate(src string,arrayChar string) map[string]string{

	re:=map[string]string{}

	items:=strings.Split(src,arrayChar)

	for i := 0; i < len(items); i++ {
		re["A"+strconv.Itoa(i)]=items[i]
	}
	return re
}
func GetDataFromTemplate(src string) map[string]string{
	return GetDataFromArrayTemplate(src,"\t")
}
